<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../node_modules/vue/dist/vue.js"></script>

    <div id="bind">
        <a v-bind:href="link" target="_self">走你</a>
        <br>
        <span v-bind:class="{active:isActive,'text-danger':hasError}">师姐</span>
        <br>
        <p v-bind:style="{color:color,fontSize:fontSize}">生活</p>
    </div>

    <script>
        let vm = new Vue({
            el:"#bind",
            data:{
                link:"http://www.baidu.com",
                isActive:true,
                hasError:false,
                color:'red',
                fontSize:'32px'
            }
        })
    </script>
</body>
</html>